package com.neuedu.studentmanage.entity;

import java.util.Date;


import com.fasterxml.jackson.annotation.JsonFormat;

public class Score {

	private Integer scoId;
	private Student student;
	private Subject subject;
//	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date times;

	private Teacher teacher;
	private Classroom classroom;
	private Double subScore;
	
	
	public Score(Integer scoId) {
		super();
		this.scoId = scoId;
	}




	public Score() {
		super();
		
	}




	public Score(Integer scoId, Student student, Subject subject, Date times, Teacher teacher, Classroom classroom,
			Double subScore) {
		super();
		this.scoId = scoId;
		this.student = student;
		this.subject = subject;
		this.times = times;
		this.teacher = teacher;
		this.classroom = classroom;
		this.subScore = subScore;
	}




	public Integer getScoId() {
		return scoId;
	}




	public void setScoId(Integer scoId) {
		this.scoId = scoId;
	}




	public Student getStudent() {
		return student;
	}




	public void setStudent(Student student) {
		this.student = student;
	}




	public Subject getSubject() {
		return subject;
	}




	public void setSubject(Subject subject) {
		this.subject = subject;
	}




	public Date getTimes() {
		return times;
	}




	public void setTimes(Date times) {
		this.times = times;
	}




	public Teacher getTeacher() {
		return teacher;
	}




	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}




	public Classroom getClassroom() {
		return classroom;
	}




	public void setClassroom(Classroom classroom) {
		this.classroom = classroom;
	}




	public Double getSubScore() {
		return subScore;
	}




	public void setSubScore(Double subScore) {
		this.subScore = subScore;
	}




	@Override
	public String toString() {
		return "Score [scoId=" + scoId + ", student=" + student + ", subject=" + subject + ", times=" + times
				+ ", teacher=" + teacher + ", classroom=" + classroom + ", subScore=" + subScore + "]";
	}

}
